<form id="dict_info">
    <div align="center">
        <input type="hidden" name="dict_id" value="${dict.dict_id}"/>
        <div>
            <label>字典类型:</label>
            <input class="easyui-validatebox" type="text" name="label_type" value="${dict.label_type}" data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">标签名称:</label>
            <input class="easyui-validatebox" type="text" name="label_name" value="${dict.label_name}"
                   data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">标签值:　</label>
            <input class="easyui-validatebox" type="text" name="label_value" value="${dict.label_value}"
                   data-options="required:true"/>
        </div>
        <div style="margin-top: 10px;">
            <label for="name">备注:　　</label>
            <input class="easyui-validatebox" type="text" name="remark" value="${dict.remark!""}"
                   data-options="required:true"/>
        </div>
        <div align="center" style="margin-top: 10px;">
            <button class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="commit()">保存</button>
        </div>
    </div>
</form>
<script>
    var dictInfo = $('#dict_info');
    dictInfo.form({
        url: '${ctx}/sys/editDict',
        onSubmit: function () {
            return dictInfo.form('validate') ? true : false;
        },
        success: function (data) {
            parent.$.modalDialog.openner.datagrid('reload');
            parent.$.modalDialog.handler.dialog('close');
        }
    });
    function commit(){
        dictInfo.submit();
    }
</script>